package com.linghu.plugins.controller;


import com.linghu.plugins.service.impl.MainPluginsImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linghu
 * @date 2024/3/15 9:58
 */

@RestController
@RequestMapping("/example")
public class ExampleController {
    @Autowired
    private MainPluginsImpl mainPlugins;
    @GetMapping
    public String hello(){
        return "hello";
    }

    //获取主程序的配置值API示例
    @GetMapping("/value")
    public String getValue(){
        return mainPlugins.value();
    }
}
